package com.geo.result.service.impl;

import com.geo.result.domain.TOrderItems;
import com.geo.result.mapper.TOrderItemsMapper;
import com.geo.result.service.ITOrderItemsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TOrderItemsServiceImpl implements ITOrderItemsService{

    @Autowired
    private TOrderItemsMapper tOrderItemsMapper;
    /**
     * 通过guid查询资料申请单明细
     *
     * @param guid 资料申请单明细GUID
     * @return 资料申请单明细
     */
    @Override
    public TOrderItems selectTOrderItemsByGuid(String guid){
        return tOrderItemsMapper.selectTOrderItemsByGuid(guid);
    }

    /**
     * 查询资料申请单明细列表
     *
     * @param TOrderItems 资料申请单明细
     * @return 资料申请单明细集合
     */
    @Override
    public List<TOrderItems> selectTOrderItemsList(TOrderItems tOrderItems)
    {
return tOrderItemsMapper.selectTOrderItemsList(tOrderItems);
    }
    /**
     * 查询资料申请单明细列表
     *
     * @param fmainguid 资料申请单GUID
     * @return 资料申请单明细集合
     */
    @Override
    public List<TOrderItems> selectTOrderItemsListByFmainguid(String fmainguid){
        return tOrderItemsMapper.selectTOrderItemsListByFmainguid(fmainguid);
    }

    /**
     * 新增资料申请单明细
     *
     * @param TOrderItems 资料申请单明细
     * @return 结果
     */
    @Override
    public int insertTOrderItems(TOrderItems tOrderItems)
    {
return  tOrderItemsMapper.insertTOrderItems(tOrderItems);
    }

    /**
     * 修改资料申请单明细
     *
     * @param TOrderItems 资料申请单明细
     * @return 结果
     */
    @Override
    public int updateTOrderItems(TOrderItems tOrderItems){
        return tOrderItemsMapper.updateTOrderItems(tOrderItems);
    }

    /**
     * 批量删除资料申请单明细
     *
     * @param fguids 需要删除的资料申请单明细ID
     * @return 结果
     */
    @Override
    public int deleteTOrderItemsByGuids(String[] fguids){
        return tOrderItemsMapper.deleteTOrderItemsByGuids(fguids);
    }

    /**
     * 删除资料申请单明细信息
     *
     * @param fguid 资料申请单明细GUID
     * @return 结果
     */
    @Override
    public int deleteTOrderItemsByGuid(String fguid){
        return tOrderItemsMapper.deleteTOrderItemsByGuid(fguid);
    }

}
